<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        input[type="file"]{
            color:red;
            padding: 20px;
        }
        .upload-container{
            position: relative;
            width: 150px;
            text-align: center;
        }
        .upload-container p{
            z-index: 0;
            width: 100%;
            background-color: #00bfff;
            color: #fff;
            padding: 10px 0;
            font-size: 12px;
        }
        .upload-container input{
            opacity: 0;
            position: absolute;
            top: 0;
            left: 0;
        }
    </style>
</head>
<body>
    <input type="file">
    <div class="upload-container">
        <p>上传文件</p>
        <input type="file">
    </div>
</body>
</html>